Platform Explorer / Nuxeo Platform LTS 2016 8.10

Component org.nuxeo.ecm.user.center.urlservice

Contributions

XML Source

<component name="org.nuxeo.ecm.user.center.urlservice">

  <extension
    target="org.nuxeo.ecm.platform.url.service.DocumentViewCodecService"
    point="codecs">

    <documentViewCodec name="docpathhome" enabled="true" default="false"
      prefix="nxhome"
      class="org.nuxeo.ecm.platform.url.codec.DocumentPathCodec" />

    <documentation>
      The user codec uses the given username to select and display a user.
      Urls are of the form http://site/nuxeo/user/username(/view).

      The view is optional, and defaults to view_home if not present.
    </documentation>
    <documentViewCodec name="user" enabled="true" default="false"
      prefix="user"
      class="org.nuxeo.ecm.user.center.UserCodec" />
    <documentViewCodec name="group" enabled="true" default="false"
      prefix="group"
      class="org.nuxeo.ecm.user.center.GroupCodec" />

  </extension>

  <extension target="org.nuxeo.ecm.platform.ui.web.rest.URLService"
    point="urlpatterns">

    <urlPattern name="home" enabled="true">
      <defaultURLPolicy>false</defaultURLPolicy>
      <needBaseURL>true</needBaseURL>
      <needRedirectFilter>true</needRedirectFilter>
      <needFilterPreprocessing>true</needFilterPreprocessing>
      <codecName>docpathhome</codecName>
      <actionBinding>#{restHelper.initContextFromRestRequest}</actionBinding>
      <documentViewBindingApplies>
        #{mainTabsActions.isOnMainTab('home')}
      </documentViewBindingApplies>
      <documentViewBinding>#{restHelper.documentView}</documentViewBinding>
      <newDocumentViewBinding>
        #{restHelper.getNewDocumentView(null)}
      </newDocumentViewBinding>
      <bindings>
        <binding name="tabId" callGetter="false">
          #{webActions.currentTabId}
        </binding>
        <binding name="subTabId" callGetter="false">
          #{webActions.currentSubTabId}
        </binding>
        <binding name="tabIds">#{webActions.currentTabIds}</binding>
        <binding name="language" callGetter="false">
          #{restHelper.localeString}
        </binding>
      </bindings>
    </urlPattern>

    <urlPattern name="user" enabled="true">
      <defaultURLPolicy>false</defaultURLPolicy>
      <needBaseURL>true</needBaseURL>
      <needRedirectFilter>true</needRedirectFilter>
      <needFilterPreprocessing>true</needFilterPreprocessing>
      <codecName>user</codecName>
      <actionBinding>
        #{restHelper.initContextFromRestRequest}
      </actionBinding>
      <bindings>
        <binding name="tabIds" callGetter="false">
          #{webActions.currentTabIds}
        </binding>
        <binding name="username" callGetter="false">
          #{userManagementActions.selectedUserName}
        </binding>
        <binding name="showUser" callGetter="false">
          #{userManagementActions.showUser}
        </binding>
      </bindings>
    </urlPattern>

    <urlPattern name="group" enabled="true">
      <defaultURLPolicy>false</defaultURLPolicy>
      <needBaseURL>true</needBaseURL>
      <needRedirectFilter>true</needRedirectFilter>
      <needFilterPreprocessing>true</needFilterPreprocessing>
      <codecName>group</codecName>
      <actionBinding>
        #{restHelper.initContextFromRestRequest}
      </actionBinding>
      <bindings>
        <binding name="tabIds" callGetter="false">
          #{webActions.currentTabIds}
        </binding>
        <binding name="groupname" callGetter="false">
          #{groupManagementActions.selectedGroupName}
        </binding>
        <binding name="showGroup" callGetter="false">
          #{groupManagementActions.showGroup}
        </binding>
      </bindings>
    </urlPattern>

  </extension>

</component>